package com.QSystem.mapper;


import com.QSystem.pojo.Title;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TitleMapper {

    void deleteBysurid(Integer surId);
    void addTitle(Title title);
    //根据titnum以及surid查找单一title
    Title queryByNum(Title title);
    //根据surid查找title的集合
    List<Title> queryBySurid(Integer surId);
    List<Title> getAllTitle();
}
